package de.hft_stuttgart.dsa.ctt.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Eduard Tudenhoefner
 */
public class Curricula {
	private List<Curriculum> curricula = new ArrayList<Curriculum>();

	public void addCurriculum(Curriculum curriculum) {
		curricula.add(curriculum);
	}

	public List<Curriculum> getCurricula() {
		return curricula;
	}

	public void setCurricula(List<Curriculum> curricula) {
		this.curricula = curricula;
	}

	@Override
	public String toString() {
		StringBuffer toString = new StringBuffer(1024);
		for (Curriculum c : curricula) {
			toString.append(c.toString());
			toString.append("\n\n");
		}

		return toString.toString();
	}
}
